Integrand size = 20, antiderivative size = 1041 \[ \int \frac {x^3}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}-\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}-\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}+\frac {10080 i b \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^7}-\frac {10080 i b \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^7}-\frac {10080 b \operatorname {PolyLog}\left (8,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^8}+\frac {10080 b \operatorname {PolyLog}\left (8,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^8} \]
[Out]
Time = 1.89 (sec) , antiderivative size = 1041, normalized size of antiderivative = 1.00, number of steps used = 23, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.450, Rules used = {4289, 4276, 3402, 2296, 2221, 2611, 6744, 2320, 6724} \[ \int \frac {x^3}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\frac {x^4}{4 a}+\frac {2 i b \log \left (\frac {e^{i \left (c+d \sqrt {x}\right )} a}{b-\sqrt {b^2-a^2}}+1\right ) x^{7/2}}{a \sqrt {b^2-a^2} d}-\frac {2 i b \log \left (\frac {e^{i \left (c+d \sqrt {x}\right )} a}{b+\sqrt {b^2-a^2}}+1\right ) x^{7/2}}{a \sqrt {b^2-a^2} d}+\frac {14 b \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) x^3}{a \sqrt {b^2-a^2} d^2}-\frac {14 b \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) x^3}{a \sqrt {b^2-a^2} d^2}+\frac {84 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) x^{5/2}}{a \sqrt {b^2-a^2} d^3}-\frac {84 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) x^{5/2}}{a \sqrt {b^2-a^2} d^3}-\frac {420 b \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) x^2}{a \sqrt {b^2-a^2} d^4}+\frac {420 b \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) x^2}{a \sqrt {b^2-a^2} d^4}-\frac {1680 i b \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) x^{3/2}}{a \sqrt {b^2-a^2} d^5}+\frac {1680 i b \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) x^{3/2}}{a \sqrt {b^2-a^2} d^5}+\frac {5040 b \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) x}{a \sqrt {b^2-a^2} d^6}-\frac {5040 b \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) x}{a \sqrt {b^2-a^2} d^6}+\frac {10080 i b \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right ) \sqrt {x}}{a \sqrt {b^2-a^2} d^7}-\frac {10080 i b \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right ) \sqrt {x}}{a \sqrt {b^2-a^2} d^7}-\frac {10080 b \operatorname {PolyLog}\left (8,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right )}{a \sqrt {b^2-a^2} d^8}+\frac {10080 b \operatorname {PolyLog}\left (8,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right )}{a \sqrt {b^2-a^2} d^8} \]
[In]
[Out]
Rule 2221
Rule 2296
Rule 2320
Rule 2611
Rule 3402
Rule 4276
Rule 4289
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int \frac {x^7}{a+b \sec (c+d x)} \, dx,x,\sqrt {x}\right ) \\ & = 2 \text {Subst}\left (\int \left (\frac {x^7}{a}-\frac {b x^7}{a (b+a \cos (c+d x))}\right ) \, dx,x,\sqrt {x}\right ) \\ & = \frac {x^4}{4 a}-\frac {(2 b) \text {Subst}\left (\int \frac {x^7}{b+a \cos (c+d x)} \, dx,x,\sqrt {x}\right )}{a} \\ & = \frac {x^4}{4 a}-\frac {(4 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^7}{a+2 b e^{i (c+d x)}+a e^{2 i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a} \\ & = \frac {x^4}{4 a}-\frac {(4 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^7}{2 b-2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{\sqrt {-a^2+b^2}}+\frac {(4 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^7}{2 b+2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{\sqrt {-a^2+b^2}} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {(14 i b) \text {Subst}\left (\int x^6 \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d}+\frac {(14 i b) \text {Subst}\left (\int x^6 \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {(84 b) \text {Subst}\left (\int x^5 \operatorname {PolyLog}\left (2,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {(84 b) \text {Subst}\left (\int x^5 \operatorname {PolyLog}\left (2,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^2} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {(420 i b) \text {Subst}\left (\int x^4 \operatorname {PolyLog}\left (3,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^3}+\frac {(420 i b) \text {Subst}\left (\int x^4 \operatorname {PolyLog}\left (3,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^3} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {(1680 b) \text {Subst}\left (\int x^3 \operatorname {PolyLog}\left (4,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^4}-\frac {(1680 b) \text {Subst}\left (\int x^3 \operatorname {PolyLog}\left (4,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^4} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}-\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {(5040 i b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (5,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^5}-\frac {(5040 i b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (5,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^5} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}-\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}-\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}-\frac {(10080 b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (6,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^6}+\frac {(10080 b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (6,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^6} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}-\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}-\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}+\frac {10080 i b \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^7}-\frac {10080 i b \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^7}-\frac {(10080 i b) \text {Subst}\left (\int \operatorname {PolyLog}\left (7,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^7}+\frac {(10080 i b) \text {Subst}\left (\int \operatorname {PolyLog}\left (7,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^7} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}-\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}-\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}+\frac {10080 i b \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^7}-\frac {10080 i b \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^7}-\frac {(10080 b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (7,\frac {a x}{-b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d \sqrt {x}\right )}\right )}{a \sqrt {-a^2+b^2} d^8}+\frac {(10080 b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (7,-\frac {a x}{b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d \sqrt {x}\right )}\right )}{a \sqrt {-a^2+b^2} d^8} \\ & = \frac {x^4}{4 a}+\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {14 b x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {84 i b x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}+\frac {420 b x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^4}-\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {1680 i b x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^5}+\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}-\frac {5040 b x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^6}+\frac {10080 i b \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^7}-\frac {10080 i b \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^7}-\frac {10080 b \operatorname {PolyLog}\left (8,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^8}+\frac {10080 b \operatorname {PolyLog}\left (8,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^8} \\ \end{align*}
Time = 1.66 (sec) , antiderivative size = 802, normalized size of antiderivative = 0.77 \[ \int \frac {x^3}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\frac {\sqrt {-a^2+b^2} d^8 x^4+8 i b d^7 x^{7/2} \log \left (1-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )-8 i b d^7 x^{7/2} \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )+56 b d^6 x^3 \operatorname {PolyLog}\left (2,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )-56 b d^6 x^3 \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )+336 i b d^5 x^{5/2} \operatorname {PolyLog}\left (3,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )-336 i b d^5 x^{5/2} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )-1680 b d^4 x^2 \operatorname {PolyLog}\left (4,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )+1680 b d^4 x^2 \operatorname {PolyLog}\left (4,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )-6720 i b d^3 x^{3/2} \operatorname {PolyLog}\left (5,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )+6720 i b d^3 x^{3/2} \operatorname {PolyLog}\left (5,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )+20160 b d^2 x \operatorname {PolyLog}\left (6,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )-20160 b d^2 x \operatorname {PolyLog}\left (6,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )+40320 i b d \sqrt {x} \operatorname {PolyLog}\left (7,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )-40320 i b d \sqrt {x} \operatorname {PolyLog}\left (7,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )-40320 b \operatorname {PolyLog}\left (8,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )+40320 b \operatorname {PolyLog}\left (8,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{4 a \sqrt {-a^2+b^2} d^8} \]
[In]
[Out]
\[\int \frac {x^{3}}{a +b \sec \left (c +d \sqrt {x}\right )}d x\]
[In]
[Out]
\[ \int \frac {x^3}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\int { \frac {x^{3}}{b \sec \left (d \sqrt {x} + c\right ) + a} \,d x } \]
[In]
[Out]
\[ \int \frac {x^3}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\int \frac {x^{3}}{a + b \sec {\left (c + d \sqrt {x} \right )}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {x^3}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {x^3}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\int { \frac {x^{3}}{b \sec \left (d \sqrt {x} + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x^3}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\int \frac {x^3}{a+\frac {b}{\cos \left (c+d\,\sqrt {x}\right )}} \,d x \]
[In]
[Out]